#include <QCoreApplication>
#include <math.h>
#include <iostream>
int main (){
using namespace std;
int i,N,K,L,A[10];

cout << "N=" ;
cin >>N;
cout << "K=" ;
cin >>K;
cout << "L=" ;
cin >>L;
for (i=1;i<=N;i++)
{cout <<"A["<<i<<"]="; cin >>A[i];cout<<endl;}
  for (i=K; i<=N-(L-K+1); i++)
  {
  A[i]=A[i+(L-K+1)];
  }
  N-=(L-K+1);
cout <<"Otvet" << endl;
for (i=1;i<=N;i++)
   {
   cout<<A[i]<<" ";
   }
cout <<" ";
return 0; }
